package com.nondo.dean.auth.common.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author linfeng
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class MenuItem implements Serializable {

    private static final long serialVersionUID = 5606367599975622494L;

    private Long id;
    private String code;
    private String name;
    private Long parentId;
    private String action;
    private Integer sequence = 0;
    private String hide = "0";
    private String icon;
    private String parentIds;

    private Map<String, List<Long>> roleIds = new HashMap<>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getHide() {
        return hide;
    }

    public void setHide(String hide) {
        this.hide = hide;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public Map<String, List<Long>> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Map<String, List<Long>> roleIds) {
        this.roleIds = roleIds;
    }
}
